#ifndef USEROPENINFOCACHE_H
#define USEROPENINFOCACHE_H

#include <QObject>
#include "Global/AbstractCache.h"
#include <QMap>
struct openInfo{
    QString Etc;
    long long time;
    int isChange;
};

class UserOpenInfoCache : public QObject,public AbstractCache
{
    Q_OBJECT
public:
    explicit UserOpenInfoCache(QObject *parent = nullptr);

    void set(const QString& key, const QString& value, int ttl_seconds) override;

    bool get(const QString& key, QString& value) override;

    void remove(const QString& key) override;

    void clear() override;

    size_t size() const override;

    ~UserOpenInfoCache();

private:
    QMap<QString,openInfo>Data;
signals:

};

#endif // USEROPENINFOCACHE_H
